home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / amigaoscd / amigapluscd / AP-Website / news / admin / phpmyadmin / ldi_table.php < prev    next >
PHP Script  |  2002-01-27  |  2KB  |  74 lines

  1. <?php
  2. /* $Id: ldi_table.php,v 1.7 2000/07/13 14:04:36 tobias Exp $ */
  3.  
  4.  
  5. // This file inserts a textfile into a table
  6.  
  7. require("header.inc.php");
  8.  
  9. $tables = mysql_list_tables($db);
  10. $num_tables = @mysql_numrows($tables);
  11. ?>
  12.  
  13. <form action="ldi_check.php" method="post"  enctype="multipart/form-data">
  14. <input type="hidden" name="goto" value="tbl_properties.php">
  15. <table border="1">
  16. <tr>
  17.     <td><?php echo $strLocationTextfile; ?></td>
  18.     <td colspan=2><input type="file" name="textfile"></td>
  19. </tr>
  20. <tr>
  21.     <td><?php echo $strReplaceTable; ?></td>
  22.     <td><input type="checkbox" name="replace" value="REPLACE"><?php echo $strReplace; ?></td>
  23.     <td><?php echo $strTheContents; ?></td>
  24. </tr>    
  25. <tr>
  26.     <td><?php echo $strFields; ?><br><?php echo $strTerminatedBy; ?></td>
  27.     <td><input type="text" name="field_terminater" size="2" maxlength="2" value=";"></td>
  28.     <td><?php echo $strTheTerminator; ?></td>
  29. </tr>
  30. <tr>
  31.     <td><?php echo $strFields; ?><br><?php echo $strEnclosedBy; ?></td>
  32.     <td><input type="text" name="enclosed" size="1" maxlength="1" value=""">
  33.         <input type="Checkbox" name="enclose_option" value="OPTIONALLY"><?php echo $strOptionally; ?>
  34.     </td>
  35.     <td><?php echo $strOftenQuotation; ?></td>
  36. </tr>
  37. <tr>
  38.     <td><?php echo $strFields; ?><br><?php echo $strEscapedBy; ?></td>
  39.     <td><input type="text" name="escaped" size="2" maxlength="2" value="\\"></td>
  40.     <td><?php echo $strOptionalControls; ?></td>
  41. </tr>
  42. <tr>
  43.     <td><?php echo $strLines; ?><br><?php echo $strTerminatedBy; ?></td>
  44.     <td><input type="text" name="line_terminator" size="8" maxlength="8" value="\n"></td>
  45.     <td><?php echo $strCarriage; ?><br><?php echo $strLineFeed; ?></td>
  46. </tr>
  47. <tr>
  48.     <td><?php echo $strColumnNames; ?></td>
  49.     <td><input type="text" name="column_name"></td>
  50.     <td><?php echo $strIfYouWish; ?></td>
  51. </tr>
  52. <tr>
  53.     <td colspan="3" align="center"><?php print show_docu("manual_Reference.html#Load");?></td>
  54. </tr>
  55. <tr>
  56.     <td colspan="3" align="center">
  57.     <input type="Hidden" name="server" value="<?php echo $server ?>">
  58.     <input type="Hidden" name="db" value="<?php echo $db; ?>">
  59.     <input type="Hidden" name="table" value="<?php echo $table; ?>">
  60.     <input type="Hidden" name="zero_rows" value="<?php echo $strTheContent; ?>">
  61.     <input type="Hidden" name="into_table" value="<?php echo $table; ?>">
  62.     <input type="Submit" name="btnLDI" value=" <?php echo $strSubmit; ?> ">  
  63.     <input type="Reset" value=" <?php echo $strReset; ?> ">
  64.     </td>
  65. </tr>
  66. </table>
  67.  
  68. </form>
  69.  
  70. <?php
  71.  
  72. require ("footer.inc.php");
  73. ?>
  74.